﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200006F RID: 111
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AetherDivideTakeChallengeRewardScRsp : IMessage<AetherDivideTakeChallengeRewardScRsp>, IMessage, IEquatable<AetherDivideTakeChallengeRewardScRsp>, IDeepCloneable<AetherDivideTakeChallengeRewardScRsp>, IBufferMessage
	{
		// Token: 0x1700015E RID: 350
		// (get) Token: 0x060004DE RID: 1246 RVA: 0x0000EBDF File Offset: 0x0000CDDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AetherDivideTakeChallengeRewardScRsp> Parser
		{
			get
			{
				return AetherDivideTakeChallengeRewardScRsp._parser;
			}
		}

		// Token: 0x1700015F RID: 351
		// (get) Token: 0x060004DF RID: 1247 RVA: 0x0000EBE6 File Offset: 0x0000CDE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AetherDivideTakeChallengeRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000160 RID: 352
		// (get) Token: 0x060004E0 RID: 1248 RVA: 0x0000EBF8 File Offset: 0x0000CDF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AetherDivideTakeChallengeRewardScRsp.Descriptor;
			}
		}

		// Token: 0x060004E1 RID: 1249 RVA: 0x0000EBFF File Offset: 0x0000CDFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideTakeChallengeRewardScRsp()
		{
		}

		// Token: 0x060004E2 RID: 1250 RVA: 0x0000EC08 File Offset: 0x0000CE08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideTakeChallengeRewardScRsp(AetherDivideTakeChallengeRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.challengeId_ = other.challengeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060004E3 RID: 1251 RVA: 0x0000EC60 File Offset: 0x0000CE60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideTakeChallengeRewardScRsp Clone()
		{
			return new AetherDivideTakeChallengeRewardScRsp(this);
		}

		// Token: 0x17000161 RID: 353
		// (get) Token: 0x060004E4 RID: 1252 RVA: 0x0000EC68 File Offset: 0x0000CE68
		// (set) Token: 0x060004E5 RID: 1253 RVA: 0x0000EC70 File Offset: 0x0000CE70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000162 RID: 354
		// (get) Token: 0x060004E6 RID: 1254 RVA: 0x0000EC79 File Offset: 0x0000CE79
		// (set) Token: 0x060004E7 RID: 1255 RVA: 0x0000EC81 File Offset: 0x0000CE81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17000163 RID: 355
		// (get) Token: 0x060004E8 RID: 1256 RVA: 0x0000EC8A File Offset: 0x0000CE8A
		// (set) Token: 0x060004E9 RID: 1257 RVA: 0x0000EC92 File Offset: 0x0000CE92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x060004EA RID: 1258 RVA: 0x0000EC9B File Offset: 0x0000CE9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AetherDivideTakeChallengeRewardScRsp);
		}

		// Token: 0x060004EB RID: 1259 RVA: 0x0000ECAC File Offset: 0x0000CEAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AetherDivideTakeChallengeRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.ChallengeId == other.ChallengeId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060004EC RID: 1260 RVA: 0x0000ED0C File Offset: 0x0000CF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060004ED RID: 1261 RVA: 0x0000ED7A File Offset: 0x0000CF7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060004EE RID: 1262 RVA: 0x0000ED82 File Offset: 0x0000CF82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060004EF RID: 1263 RVA: 0x0000ED8C File Offset: 0x0000CF8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060004F0 RID: 1264 RVA: 0x0000EE04 File Offset: 0x0000D004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060004F1 RID: 1265 RVA: 0x0000EE74 File Offset: 0x0000D074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AetherDivideTakeChallengeRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060004F2 RID: 1266 RVA: 0x0000EEF0 File Offset: 0x0000D0F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060004F3 RID: 1267 RVA: 0x0000EEFC File Offset: 0x0000D0FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 42U)
					{
						if (num != 48U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.ChallengeId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040001BE RID: 446
		private static readonly MessageParser<AetherDivideTakeChallengeRewardScRsp> _parser = new MessageParser<AetherDivideTakeChallengeRewardScRsp>(() => new AetherDivideTakeChallengeRewardScRsp());

		// Token: 0x040001BF RID: 447
		private UnknownFieldSet _unknownFields;

		// Token: 0x040001C0 RID: 448
		public const int RetcodeFieldNumber = 6;

		// Token: 0x040001C1 RID: 449
		private uint retcode_;

		// Token: 0x040001C2 RID: 450
		public const int RewardFieldNumber = 5;

		// Token: 0x040001C3 RID: 451
		private ItemList reward_;

		// Token: 0x040001C4 RID: 452
		public const int ChallengeIdFieldNumber = 3;

		// Token: 0x040001C5 RID: 453
		private uint challengeId_;
	}
}
